home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_12_09 / single2 / newtest.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-07  |  1010 b   |  50 lines

  1. //  Listing 7
  2. //  newtest.h : main header file for the application
  3. //
  4. //  Copyright Singleton Systems Ltd 1994 
  5.  
  6. #if !defined (_NEWTEST_H_)
  7. #define _NEWTEST_H_
  8.  
  9. #ifndef __AFXWIN_H__
  10.     #error 'stdafx.h' required
  11. #endif
  12.  
  13. #include    "resource.h"        // main symbols   
  14. #include    "..\cout\cstrwnd.h"
  15. #include    "..\cout\winstrm.h"
  16.  
  17. class CComdtestApp : public CWinApp
  18. {
  19. public:
  20.  
  21. void DoTest ();
  22. static void FilePrintHeapReport(char * msg = NULL);
  23.  
  24. // Overrides
  25. virtual BOOL InitInstance(); 
  26. virtual int ExitInstance ();
  27.  
  28. // Implementation
  29.  
  30. //{{AFX_MSG(CComdtestApp)
  31.     afx_msg void OnAppAbout();
  32.     afx_msg void OnFileClose();
  33.     afx_msg void OnFilePrintHeapReport();
  34.     //}}AFX_MSG
  35. DECLARE_MESSAGE_MAP()   
  36.     
  37. void OnFileOpen ();
  38.  
  39. public:
  40. void set_exit_code (int code)           
  41. // only update if not already set
  42.     {if (exit_code == 0) exit_code = code;}  
  43.     
  44. private:
  45. int exit_code;
  46. winstreambuf * coutbuf;
  47. ostreamWnd * cout_window;
  48. };
  49. #endif
  50.